package pkg

import (
	"github.com/mojocn/base64Captcha"
)

func ImageCaptcha() (Code string, Image string) {
	c := base64Captcha.NewCaptcha(base64Captcha.DefaultDriverDigit, base64Captcha.DefaultMemStore)
	_, s, s2, err := c.Generate()
	if err != nil {
		return "", ""
	}
	return s2, s
}
